package org.soarsky.wealthchengdu.module.info;

import java.util.ArrayList;
import java.util.List;

import org.soarsky.wealthchengdu.R;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Gallery;
import android.widget.ProgressBar;

/**
 * 成都镜像大图
 * 
 * @author 胡伟 下午3:12:29
 */
public class MirrorBigImage extends Activity {
	
	Gallery delitGallery;
	MirrordelitAdapter mAdapter;
	ProgressBar loaddatagress;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_imgs_delit);
         
		
//		mirror_bigimgs=(ImageView)findViewById(R.id.mirror_bigimgs);
//		Intent intent=getIntent();
//		int[] images=intent.getIntArrayExtra("images");
//		int number=intent.getIntExtra("number", 0);
		initview();
		setviewdata();
//		mirror_bigimgs.setImageResource(images[number]);
	}
	
	private void initview()
	{
		delitGallery=(Gallery)findViewById(R.id.activity_delit_gallery);
//		loaddatagress = (ProgressBar)findViewById(R.id.activity_delit_progressbar);
	}
	
	private void setviewdata()
	{
		int[] img1={R.drawable.bg_star_three,R.drawable.bg_star_two,R.drawable.bg_star_three,R.drawable.cd_food_bg};
		List<Integer> img = new ArrayList<Integer>();
		mAdapter = new MirrordelitAdapter(MirrorBigImage.this);
		delitGallery.setAdapter(mAdapter);
//		delitGallery.setSelection(position);
		img.add(img1[0]);
		img.add(img1[1]);
		img.add(img1[2]);
		img.add(img1[3]);
//		mAdapter.setTempList(img);
//		mAdapter.setTempList(tempImages)
	}
}
